package com.google.code.toub.waves.editor.style;

import com.google.code.toub.waves.editor.annotation.AnnotationColor;

public class BlipTextStyle {
	/**
	 * Text color ("style/color" com.google.wave.api.Annotation)
	 */
	private AnnotationColor color;

	/**
	 * Constructor
	 * 
	 * @param color
	 *            text color
	 * @param backgroundColor
	 *            text background color
	 */
	public BlipTextStyle(AnnotationColor color, AnnotationColor backgroundColor) {
		super();
		this.color = color;
		this.backgroundColor = backgroundColor;
	}

	/**
	 * Constructor
	 * 
	 * @param color
	 *            text color
	 */
	public BlipTextStyle(AnnotationColor color) {
		super();
		this.color = color;
	}

	/**
	 * Constructor
	 * 
	 * @param hexadecimalColor
	 *            text color
	 */
	public BlipTextStyle(String hexadecimalColor) {
		super();
		this.color = new AnnotationColor(hexadecimalColor);
	}

	/**
	 * Constructor
	 * 
	 * @param hexadecimalColor
	 *            text color
	 * @param hexadecimalBackgroundColor
	 *            text background color
	 */
	public BlipTextStyle(String hexadecimalColor,
			String hexadecimalBackgroundColor) {
		super();
		this.color = new AnnotationColor(hexadecimalColor);
		this.backgroundColor = new AnnotationColor(hexadecimalBackgroundColor);
	}

	/**
	 * Text color ("style/backgroundColor" com.google.wave.api.Annotation)
	 */
	private AnnotationColor backgroundColor;

	/**
	 * @return the color
	 */
	public AnnotationColor getColor() {
		return color;
	}

	/**
	 * @param color
	 *            the color to set
	 */
	public void setColor(AnnotationColor color) {
		this.color = color;
	}

	/**
	 * @return the backgroundColor
	 */
	public AnnotationColor getBackgroundColor() {
		return backgroundColor;
	}

	/**
	 * @param backgroundColor
	 *            the backgroundColor to set
	 */
	public void setBackgroundColor(AnnotationColor backgroundColor) {
		this.backgroundColor = backgroundColor;
	}

	// TODO add support for "style/fontSize", "style/fontStyle",
	// "style/fontWeight, "style/textDecoration" and "style/verticalAlign"
}
